package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 
 *
 * @author chenzh
 * @since 2024-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_student_enroll_white")
@Schema(name = "EduStudentEnrollWhite", title = "", description = "实体类")
public class EduStudentEnrollWhite extends Model<EduStudentEnrollWhite> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "enrollWhiteId", description = "报名白名单主键")
    @TableId(value = "enroll_white_id", type = IdType.ASSIGN_ID)
    private Long enrollWhiteId;
    @Schema(name = "year", title = "年份")
    @TableField(value = "Year")
    private Integer year;
    @Schema(name = "idcard", description = "学生身份证")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "fullName", description = "学生")
    @TableField(value = "full_name")
    private String fullName;

    @Schema(name = "schoolId", description = "录入学校")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "schoolName", description = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "remark", description = "加入白名单原因")
    @TableField(value = "remark")
    private String remark;

    @Schema(name = "areaCode", description = "所属行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "authStatus", description = "审核状态")
    @TableField(value = "auth_status")
    private String authStatus;

    @Schema(name = "authRemarks", description = "审核意见")
    @TableField(value = "auth_remarks")
    private String authRemarks;

    @Schema(name = "authTime", description = "审核时间")
    @TableField(value = "auth_time")
    private Date authTime;

    @Schema(name = "authUserId", description = "审核人")
    @TableField(value = "auth_user_id")
    private String authUserId;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del", description = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.enrollWhiteId;
    }
}
